using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WPCoco.Tasks
{
    public class EaseBackOutFunction : EaseFunction
    {
        public EaseBackOutFunction(float overshoot)
        {
            this.overshoot = overshoot;
        }

        readonly float overshoot;

        public override float Evaluate(float time)
        {
            time = time - 1;
            return time * time * ((overshoot + 1) * time + overshoot) + 1;
        }
    }
}
